<{include file="db:`$mydirname`_header.html"}>

<{if $link}>

  <div style="padding:12px 0 20px 24px;">
    <b style="border-bottom:1px solid #aaa;width:80%;display:block;padding-bottom:6px;"><{$smarty.const._MD_CATEGORY}></b>
    <ul style="padding-top:6px;line-height:150%;">
    <{foreach item=cat from=$link.category name=i}>
      <li><{$cat}></li>
    <{/foreach}>
    <{* <!--categories without path-->
    <{foreach item=cid from=$link.cid name=i}>
      <li><a href="<{$myurl}>/index.php?cid=<{$cid}>"><{$allcat[$cid]}></a></li>
    <{/foreach}>
    *}>
    </ul>
  </div>

  <div id="links_index_wrap">
    <{include file="db:`$mydirname`_link.html" link=$link}>
  </div>

  <div class="links_navigation"><{$nav}></div>

  <!-- d3forum comment integration -->
  <{if $comment_dirname && $comment_forum_id}>
    <{include file="db:`$mydirname`_inc_comment.html"}>
  <{/if}>

<{/if}>

<{include file="db:`$mydirname`_footer.html"}>